package com.yunduan.tornado.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author jinpeng
 * @since 2019-09-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_sys_user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId("id")
    private Integer id;

    /**
     * 用户Id
     */
    @TableField("user_id")
    private String userId;

    /**
     * 用户名字
     */
    @TableField("user_name")
    private String userName;

    /**
     * 性别
     */
    @TableField("sex")
    private Integer sex;

    /**
     * 手机号
     */
    @TableField("phone")
    private String phone;

    /**
     * 地址
     */
    @TableField("adress")
    private String adress;

    /**
     * 账号
     */
    @TableField("account")
    private String account;

    /**
     * 密码
     */
    @TableField("password")
    private String password;

    /**
     * 加密字符
     */
    @TableField("salt")
    private String salt;

    /**
     * 创建时间
     */
    @TableField("create_time")
    @DateTimeFormat(pattern ="yyyy-MM-dd")
    //private LocalDateTime createTime;
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField("end_time")
    @DateTimeFormat(pattern ="yyyy-MM-dd")
    //private LocalDateTime endTime;
    private Date endTime;


}
